﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace GestionIncidencias.Models
{
    public class Usuario
    {
        [Required(ErrorMessage = "El Codigo es requerido")]
        [Display(Name = "Codigo", Description = "Codigo")]
        public int Codigo { get; set; }

        [Required(ErrorMessage = "El Nombre es requerido")]
        [Display(Name = "Nombre", Description = "Nombre")]
        public string  Nombre { get; set; }

        [Required(ErrorMessage = "El Apellido es requerido")]
	    [Display(Name = "Apellido", Description = "Apellido")]
        public string Apellido { get; set; }

        [Required(ErrorMessage = "El Area de trabajo es requerido")]
        [Display(Name = "Area", Description = "Area")]
        public string Area { get; set; }

        [Required(ErrorMessage = "El nombre de Login para el sistema es requerido")]
        [Display(Name = "Login", Description = "Login")]
        public string Login { get; set; }

        [Required(ErrorMessage = "La contraseña es requerido")]
        [Display(Name = "Contrasena", Description = "Contrasena")]
        public string Contrasena { get; set; }

        [Required(ErrorMessage = "El tipo es requerido")]
        [Display(Name = "Tipo", Description = "Tipo")]
        public string Tipo { get; set; }
    }
}